//
//  MQVideoFooterView.m
//  MQ
//
//  Created by lanou on 15/10/28.
//  Copyright © 2015年 徐永祥. All rights reserved.
//

#import "MQVideoFooterView.h"

@implementation MQVideoFooterView

-(instancetype)init
{
    self = [super init];
    if (self) {
        _backGroundView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, screen_width, 50)];
        _backGroundView.image = [UIImage imageNamed:@"bg_share_large"];
        _backGroundView.userInteractionEnabled = YES;
        [self addSubview:_backGroundView];
        
        for (int i = 0; i<2; i++) {
            UIButton * button =[UIButton buttonWithType:(UIButtonTypeCustom)];
            button.tag = 100+i;
            button.frame = CGRectMake(screen_width/3*i+100, 10, 30, 30);
            switch (button.tag-100) {
                
                    case 0:
                {
                    [button setBackgroundImage:[UIImage imageNamed:@"iconfont-fenxiang (2)"] forState:(UIControlStateNormal)];
                }
                    break;
              case 1:
                {
                    [button setBackgroundImage:[UIImage imageNamed:@"iconfont-shezhi (7)"] forState:(UIControlStateNormal)];
                }
                    break;
            }
            [_backGroundView addSubview:button];
        }
        
    }
    
    return self;
}
@end
